/* eslint-disable */
import {
  getAllreadyClass
} from "../../api/ClassManage/Grade"

const state = {
  count: 'Afsfdsd333',
  examlist: []
}

const mutations = {
  getExamListAll(state, res) {
    state.examlist = res.data
  }
}

const actions = {
  async getExam({
    commit
  }) {
    const {
      data: res
    } = await getAllreadyClass()
    if (res.code !== 1) {
      Message.error(res.msg)
    }
    commit('getExamListAll', res)
    // console.log(res)
  }
}
const getters = {

}

export default {
  namespaced: true,
  state,
  mutations,
  actions,
  getters
}
